import 'package:flutter/cupertino.dart';
import 'package:lib_database/sp.dart';

import '../../../module_common/bridge/native_channel_bridge.dart';

class WalletAssetsProvider extends ChangeNotifier {
  bool isShowAssets = true;

  void toggleAssetsShow(){
    isShowAssets=!isShowAssets;
    final userId = NativeChannelBridge.instance.appCommMsg?.userId ?? '';
    SP().setAssetsShowState(userId,isShowAssets);
    notifyListeners();
  }

  void setInitAssetsShowState(){
    final userId = NativeChannelBridge.instance.appCommMsg?.userId ?? '';
    isShowAssets = SP().getAssetsShowState(userId);
  }
}